package com.gitee.free.coding.admin.system.logic;

import com.gitee.free.coding.admin.system.entity.SystemLoginLog;
import com.gitee.free.coding.admin.system.mapper.SystemLoginLogMapper;
import com.gitee.free.coding.core.utils.ReturnVerifier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SystemLoginLogLogic {

    @Autowired
    private SystemLoginLogMapper systemLoginLogMapper;

    public void addSystemLoginLog(SystemLoginLog systemLoginLog) {
        int result = systemLoginLogMapper.insert(systemLoginLog);
        ReturnVerifier.verifyInsertOne(result, systemLoginLog);
    }
}
